package com.lagou.task03;

/**
 * 上网套餐类
 */
public class Internet implements InternetInterface{
    private  int flow;
    private  int  bill;
    public Internet(){
        
    }

    public Internet(int flow, int bill) {
        this.flow = flow;
        this.bill = bill;
    }

    public long getFlow() {
        return flow;
    }

    public void setFlow(int flow) {
        this.flow = flow;
    }

    public int getBill() {
        return bill;
    }

    public void setBill(int bill) {
        this.bill = bill;
    }
    public void show(){
        System.out.print("上网流量"+getFlow()+" ");
        System.out.println("每月资费"+getBill());
    }



    @Override
    public void show1(int flow, Phone p1) {
        System.out.println("正在上网，实现了上网接口");
    }
}
